//
// Created by jsjxsy on 2022/8/31.
//
#include <iostream>
using namespace std;
#include <vector>
#include <algorithm>
int main() {
  vector<bool> v1;
  v1.push_back(true);
  v1.push_back(false);
  vector<bool> v2;
  cout << "v1:" << endl;
  for (vector<bool>::iterator it = v1.begin(); it != v1.end(); it++) {
    cout << boolalpha << *it << " ";
  }
  cout << endl;
  v2.resize(v1.size());
  transform(v1.begin(), v1.end(), v2.begin(), logical_not<bool>());
  cout << "v2:" << endl;
  for (vector<bool>::iterator it = v2.begin(); it != v2.end(); it++) {
    cout << boolalpha << *it << " ";
  }
  cout << endl;
  return 0;
}

